Skip to main content

overflowRect

Type

property

Summary

Allows a script widget to render content outside its rect.

Syntax

get the overflowRect of <script widget>
set the overflowRect of <script widget> to <rect>

Description

Use the overflowRect property to define the rectangle into which a script widget can render content, which can be larger than the widget's rectangle.

The overflowRect can be removed by setting it to the widget's rectangle.

The effective rectangle of the widget includes its overflowRect.

Examples

	/* Extend background graphic 10 pixels in all directions outside of the
* rect of the script widget */

on resizeControl
local tRect
put the rect of me into tRect

subtract 10 from item 1 of tRect
subtract 10 from item 2 of tRect
add 10 to item 3 of tRect
add 10 to item 4 of tRect

set the rect of graphic 1 of me to tRect
set the overflowRect of me to tRect
end resizeControl
	/* Remove overflow */
set the overflowRect of me to the rect of me

glossary: property, integer

property: rectangle

Compatibility and Support

Introduced

LiveCode Create 1.0

OS

mac

windows

linux

ios

android

web

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?